"use strict";

// 38g  lingbaichao
// crq  1585638808

var app_id = 60001081;
var api_version = 180401;

// 测试
var apiserver = "https://test-api-gsx.aunapi.com";
var userserver = "https://test-ppt-gsx.aunapi.com";

var webview = {
  zizhu: "https://api-gsx.aunapi.com/apph5/page/self-service",
  web_question: "https://api-gsx.aunapi.com/apph5/page/question-xcx",
  web_summary: "https://api-gsx.aunapi.com/apph5/page/summary"
};

var cdnserver = "http://img.auntec.cn/gsxxcx/images/";

var apis = {
  "webpay": apiserver + "/apph5/order/wap-payment",
  "webpaysvr": apiserver + "/apph5/order/svr-wap-payment",
  "goods": apiserver + "/apph5/goods",
  "goods/info": apiserver + "/apph5/goods/info",
  "@goods": apiserver + "/apph5/goods",
  "@goods/info": apiserver + "/apph5/goods/info",
  "@feedback/answers": apiserver + "/apph5/feedback/answers",
  "@api/verify": apiserver + "/apph5/api/verify",
  "@order/create": apiserver + "/apph5/order/create",
  "@order/payment": apiserver + "/apph5/order/payment",
  "@api/activity": apiserver + "/api/activity",
  "create_order": apiserver + "/apph5/order/create",
  "@order/cancel": apiserver + "/apph5/order/cancel",
  "@order/delete": apiserver + "/apph5/order/delete",
  "@api/orders": apiserver + "/apph5/api/orders",
  "@api/order": apiserver + "/apph5/api/odinfo-v2",
  "@survey-reply/index": apiserver + "/apph5/survey-reply/index",
  "@survey-reply/view": apiserver + "/apph5/survey-reply/view",
  "@feedback/add-contact": apiserver + "/apph5/feedback/add-contact",
  "@feedback/add-feedback": apiserver + "/apph5/feedback/add-feedback",
  "@order/svr-payment": apiserver + "/apph5/order/svr-payment",
  "login/jscode2session": userserver + "/v1/login/jscode2session",
  "login/wx-xcx": userserver + "/v1/login/wx-xcx2",
  "refreshtoken": userserver + "/v1/token/refresh",
  "bind/phone": userserver + "/v1/bind/phone",
  "userinfo/update": userserver + "/v1/userinfo/update",
  "userinfo": userserver + "/v1/userinfo",
  "sms": userserver + "/v1/sms",
  "login": userserver + "/v1/login/phone",
};

/**
0 工单已作废
1 工单已取消
2 未分配
3 派单成功
4 预约成功
5 服务中
6 服务完成
7 服务完成
 */
var orderstate = [{
  $avatar: "ordercancel_50x50_@3x.png"
}, {
  $avatar: "ordercancel_50x50_@3x.png"
}, {
  $avatar: "orderpaysuccess_50x50_@3x.png"
}, {
  $avatar: "orderaccept_50x50_@3x.png"
}, {
  $avatar: "appointment_50x50_@3x.png"
}, {
  $avatar: "inservice_50x50_@3x.png"
}, {
  $avatar: "servicecomplete_50x50_@3x.png"
}, {
  $avatar: "servicecomplete_50x50_@3x.png"
}];

var code = {
  success: 0,
  token_need_refresh: 1200,
  token_failed: 1201
};

module.exports = {
  cdnserver: cdnserver,
  apis: apis,
  app_id: app_id,
  code: code,
  webview: webview,
  orderstate: orderstate,
  api_version
};
